using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.EntidadesArtes
{
	/// <summary>
	/// A custom serializable dataset containing 
	/// </summary>
	[Serializable()]
	[DesignerCategory("code")]


	/// <summary>Class for handling datasets</summary>  
		public class InfraestructuraEntidadesData : DataTable
	{
		///
		/// Constants for table and fields mapping
		///
		public const string ART_INFRAESTRUCTURA_ENTIDADES_TABLE = "ART_INFRAESTRUCTURA_ENTIDADES";

		public const string INF_ID_FIELD = "INF_ID";
		public const string END_ID_FIELD = "END_ID";
		public const string INF_NOMBRE_FIELD = "INF_NOMBRE";
		public const string INF_DIRECTOR_FIELD = "INF_DIRECTOR";
		public const string INF_ANO_INICIO_ACTIVIDADES_FIELD = "INF_ANO_INICIO_ACTIVIDADES";
		public const string ZOP_ID_FIELD = "ZOP_ID";
		public const string ZON_ID_FIELD = "ZON_ID";
		public const string INF_AREA_FIELD = "INF_AREA";
		public const string INF_DIRECCION_FIELD = "INF_DIRECCION";
		public const string INF_TIENE_TELEFONO_FIELD = "INF_TIENE_TELEFONO";
		public const string INF_NUMERO_TELEFONO_FIELD = "INF_NUMERO_TELEFONO";
		public const string INF_TIENE_FAX_FIELD = "INF_TIENE_FAX";
		public const string INF_NUMERO_FAX_FIELD = "INF_NUMERO_FAX";
		public const string INF_APARTADO_AEREO_FIELD = "INF_APARTADO_AEREO";
		public const string INF_TIENE_CORREO_FIELD = "INF_TIENE_CORREO";
		public const string INF_CORREO_ELECTRONICO_FIELD = "INF_CORREO_ELECTRONICO";
		public const string INF_CONFIRMACION_CORREO_FIELD = "INF_CONFIRMACION_CORREO";
		public const string INF_PAGINA_WEB_FIELD = "INF_PAGINA_WEB";
		public const string CAM_ID_FIELD = "CAM_ID";
		public const string ARD_ID_FIELD = "ARD_ID";
		public const string ZON_NOMBRE_FIELD = "ZON_NOMBRE";
		public const string ZOP_NOMBRE_FIELD = "ZOP_NOMBRE";



		protected InfraestructuraEntidadesData(SerializationInfo info, StreamingContext context)
		{
			//
		}

		public InfraestructuraEntidadesData()
		{
			BuildDataTables();
		}

		/// <summary>
		/// Creates the following datatables: Localidades
		/// </summary>
		private void BuildDataTables()
		{
			this.TableName = ART_INFRAESTRUCTURA_ENTIDADES_TABLE;

			Columns.Add(INF_ID_FIELD, typeof (Decimal));
			Columns.Add(END_ID_FIELD, typeof (Decimal));
			Columns.Add(INF_NOMBRE_FIELD, typeof (String));
			Columns.Add(INF_DIRECTOR_FIELD, typeof (String));
			Columns.Add(INF_ANO_INICIO_ACTIVIDADES_FIELD, typeof (String));
			Columns.Add(ZOP_ID_FIELD, typeof (Int32));
			Columns.Add(ZON_ID_FIELD, typeof (String));
			Columns.Add(INF_AREA_FIELD, typeof (String));
			Columns.Add(INF_DIRECCION_FIELD, typeof (String));
			Columns.Add(INF_TIENE_TELEFONO_FIELD, typeof (String));
			Columns.Add(INF_NUMERO_TELEFONO_FIELD, typeof (String));
			Columns.Add(INF_TIENE_FAX_FIELD, typeof (String));
			Columns.Add(INF_NUMERO_FAX_FIELD, typeof (String));
			Columns.Add(INF_APARTADO_AEREO_FIELD, typeof (String));
			Columns.Add(INF_TIENE_CORREO_FIELD, typeof (String));
			Columns.Add(INF_CORREO_ELECTRONICO_FIELD, typeof (String));
			Columns.Add(INF_CONFIRMACION_CORREO_FIELD, typeof (String));
			Columns.Add(INF_PAGINA_WEB_FIELD, typeof (String));
			Columns.Add(CAM_ID_FIELD, typeof (Decimal));
			Columns.Add(ARD_ID_FIELD, typeof (Decimal));
			Columns.Add(ZOP_NOMBRE_FIELD, typeof (String));
			Columns.Add(ZON_NOMBRE_FIELD, typeof (String));
		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name="row">Dataset row
		public void addInfraestructuraEntidades(DataRow row)
		{
			this.Rows.Add(row);
		}

	}

}